import Http from "@/http"

export function pageApi() {
    return Http.get('tenant/page')
}

export function saveApi(params:any) {
    return params.id ? Http.put('tenant/edit/' + params.id, params) : Http.post('tenant/add', params)
}


export function deleteApi(id) {
    return Http.delete('tenant/delete/' + id)
}

export function restpwdApi(id:number) {
    return Http.put('tenant/resetpwd', {id:id})
}

export function querySubTenantApi(querys:any) {
    return Http.get('tenant/sub', querys)
}
